<!--<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>-->
<c:set var="path" value="${pageContext.request.contextPath}" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>医疗器械管理登录页</title>
<meta charset="utf-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta name="keywords" content="医疗器械管理系统">
<meta name="description" content="医疗器械管理系统">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<link href="${pageContext.request.contextPath }/static/statics/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath }/static/statics/h-ui.admin/css/H-ui.login.css"
	rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath }/static/statics/h-ui.admin/css/style.css" rel="stylesheet"
	type="text/css" />
<link href="${pageContext.request.contextPath }/static/statics/lib/Hui-iconfont/1.0.8/iconfont.css"
	rel="stylesheet" type="text/css" />

<style type="text/css">
.footer_signup_link {
	position: absolute;
	width: 141px;
	height: 78px;
	bottom: 70px;
	padding: 0 20px;
	margin: 0 0 13px 0;
	line-height: 25px;
	text-align: center;
	/*  opacity: 1;*/
	color: #fff;
	z-index: 3;
}

.signup_link {
	display: block;
	height: 45px;
	padding: 0 10px;
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: bold;
	line-height: 45px;
	border: 0;
	border-radius: 2px;
	color: #fff;
	background: rgba(255, 255, 255, 0.33);
}

.footer_signup_link a {
	text-decoration: none;
	opacity: 1;
	color: #fff;
}

.link {
	font-size: 14px;
	padding-right: 5px;
	margin-right: 12px;
	color: #fff;
}
</style>
</head>

<body>
	
	<input type="hidden" id="TenantId" name="TenantId" value="" />
	<div class="header">
		<h2 style="margin-left: 80px;">医疗器械管理系统</h2>
	</div>
	
	<div class="loginWraper">
		<div id="loginform" class="loginBox">
			<form class="form form-horizontal"
				action="userlogin.html" method="post"
				style="margin-top: 80px;">
				<div class="row cl">
					<label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60d;</i>
					</label>
					<div class="formControls col-xs-8">
						<input id="user_name" name="user_name" type="text"
							placeholder="用户名" class="input-text size-L" value="">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60e;</i>
					</label>
					<div class="formControls col-xs-8">
						<input id="user_password" name="user_password"
							type="password" placeholder="密码" class="input-text size-L"
							value="">
					</div>
				</div>
				<div>
					<label><input type="checkbox" checked="checked"
						id="rememberMe" style="width: 10px; height: 10px;">记住我</label>
				</div>
				<div class="row cl" style="margin-top: 50px;">
					<div class="formControls col-xs-8 col-xs-offset-3">
						<input name="dl" type="submit" class="btn btn-success radius size-L"
							value="&nbsp;登&nbsp;&nbsp;&nbsp;&nbsp;录&nbsp;" id="subLogin">
						<a href="${pageContext.request.contextPath }/getId.html">点击跳转</a>
						<input name="" type="reset" class="btn btn-default radius size-L"
							value="&nbsp;取&nbsp;&nbsp;&nbsp;&nbsp;消&nbsp;">
					</div>
				</div>
			</form>
		</div>
	</div>
	<div class="footer_signup_link">
		<!--<a class="signup_link" href="${path}/faceService/faceloginPage">人脸登录</a>-->
		<a class="signup_link" href="/Medical_Instrument/jsp/face/face_login.html" style="color: red; font-size: 30px; ">人脸登录</a>
		<a href="#" target="_blank" class="link">Patent</a> <a href="#"
			target="_blank" class="link">About</a>
	</div>
	<div class="footer">Copyright 医疗器械管理 by Medical_Instrument v1.0</div>
	<script type="text/javascript"
		src="${pageContext.request.contextPath }/static/statics/lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript"
		src="${pageContext.request.contextPath }/static/statics/h-ui/js/H-ui.min.js"></script>

	<script type="text/javascript" src="${pageContext.request.contextPath }/static/statics/js/utils/MD5.js"></script>
	<script src="${pageContext.request.contextPath }/static/js/path.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath }/static/statics/lib/layer/2.4/layer.js"></script>
	<script type="text/javascript">
		$(function() {
		
			layer.msg('推荐使用谷歌浏览器以80%的比例浏览!', {
				icon : 6,
				time : 6000
			});


			$("#subLogin").click(function() {
				var operatorName = $('#operatorName').val();
				var operatorPassword = $('#operatorPassword').val();
				if (operatorName == '') {
					layer.msg('请输入用户名!', {
						icon : 5,
						time : 1000
					});
					return false;
				}
				if (operatorPassword == '') {
					layer.msg('请输入密码!', {
						icon : 5,
						time : 1000
					});
					return false;
				}
				var pswd = MD5(operatorName + "#" + operatorPassword), data = {
					operatorName : operatorName,
					operatorPassword : pswd,
					rememberMe : $("#rememberMe").is(':checked')
				};

				$.ajax({
					url : "${path}/faceService/dologin2",
					data : data,
					type : "post",
					dataType : "json",
					beforeSend : function() {
						layer.msg('登录中...');
					},
					success : function(result) {
						if (result && result.status != 200) {
							layer.msg(result.message, function() {
							});

							return;
						} else {
							layer.msg('登录成功！');
							setTimeout(function() {
								//登录返回
								window.location.href = result.back_url;
							}, 1000);
						}
					},
					error : function(e) {
						console.log(e, e.message);
						layer.msg('发生错误，请稍后再试！', new Function());
					}
				});

			});

		});
	</script>
</body>
</html>
